﻿@using System.Collections.Specialized

@{
    ViewBag.Title = "Login";
    Layout = null;
}

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <title>Login Page - Ace Admin</title>

    <meta name="description" content="User login page" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />

    <!--basic styles-->
    <link href="~/Content/Templates/Admin/css/bootstrap.min.css" rel="stylesheet" />
    <link href="~/Content/Templates/Admin/css/bootstrap-responsive.min.css" rel="stylesheet" />
    <link rel="stylesheet" href="~/Content/Templates/Admin/css/font-awesome.min.css" />

    <!--[if IE 7]>
      <link rel="stylesheet" href="~/Content/Templates/Admin/css/font-awesome-ie7.min.css" />
    <![endif]-->
    <!--page specific plugin styles-->
    <!--fonts-->

    <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:400,300" />

    <!--ace styles-->

    <link rel="stylesheet" href="~/Content/Templates/Admin/css/ace.min.css" />
    <link rel="stylesheet" href="~/Content/Templates/Admin/css/ace-responsive.min.css" />
    <link rel="stylesheet" href="~/Content/Templates/Admin/css/ace-skins.min.css" />

    <!--[if lte IE 8]>
      <link rel="stylesheet" href="~/Content/Templates/Admin/css/ace-ie.min.css" />
    <![endif]-->
    <!--inline styles related to this page-->
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>

<body class="login-layout" ng-app="app">
    <div class="main-container container-fluid" ng-controller="loginCtrl">
        <div class="main-content">
            <div class="row-fluid">
                <div class="span12">
                    <div class="login-container">
                        <div class="row-fluid">
                            <div class="center">
                                <h1>
                                    <i class="icon-leaf green"></i>
                                    <span class="red">Ace</span>
                                    <span class="white">Application</span>
                                </h1>
                                <h4 class="blue">&copy; Company Name</h4>
                            </div>
                        </div>

                        <div class="space-6"></div>

                        <div class="row-fluid" ng-cloak>
                            <div class="position-relative">
                                <div ng-show="forms.isLogin" class="login-box visible widget-box no-border">
                                    <div class="widget-body">
                                        <div class="widget-main">
                                            <div class="alert alert-error" ng-show="loginError.status">
                                                <button type="button" class="close" data-dismiss="alert">
                                                    <i class="icon-remove"></i>
                                                </button>

                                                <strong>
                                                    <i class="icon-remove"></i>
                                                    Oh snap!
                                                </strong>

                                                {{loginError.desc}}
                                                <br>
                                            </div>
                                            <h4 class="header blue lighter bigger">
                                                <i class="icon-coffee green"></i>
                                                Please Enter Your Information
                                            </h4>

                                            <div class="space-6"></div>

                                            <form>
                                                <fieldset>
                                                    <label>
                                                        <span class="block input-icon input-icon-right">
                                                            <input id="username" type="text" class="span12" placeholder="Username" ng-model="loginCredentials.username" />
                                                            <i class="icon-user"></i>
                                                        </span>
                                                    </label>

                                                    <label>
                                                        <span class="block input-icon input-icon-right">
                                                            <input id="password" type="password" class="span12" placeholder="Password" ng-model="loginCredentials.password" />
                                                            <i class="icon-lock"></i>
                                                        </span>
                                                    </label>

                                                    <div class="space"></div>

                                                    <div class="clearfix">
                                                        <label class="inline">
                                                            <input type="checkbox" />
                                                            <span class="lbl"> Remember Me</span>
                                                        </label>

                                                        <button id="loginBtn" ng-click="login()" class="width-35 pull-right btn btn-small btn-primary">
                                                            <i style="display:none" class="icon-spinner icon-spin orange bigger-125" loader
                                                               elem-to-disable="#loginBtn"></i>
                                                            <i class="icon-key"></i>
                                                            Login
                                                        </button>
                                                    </div>

                                                    <div class="space-4"></div>
                                                </fieldset>
                                            </form>

                                            <div class="social-or-login center">
                                                <span class="bigger-110">Or Login Using</span>
                                            </div>

                                            <div class="social-login center">
                                                <a class="btn btn-primary">
                                                    <i class="icon-facebook"></i>
                                                </a>

                                                <a class="btn btn-info">
                                                    <i class="icon-twitter"></i>
                                                </a>

                                                <a class="btn btn-danger">
                                                    <i class="icon-google-plus"></i>
                                                </a>
                                            </div>
                                        </div><!--/widget-main-->

                                        <div class="toolbar clearfix">
                                            <div>
                                                <a href="javascript:void(0);" ng-click="openforms('forgot')" class="forgot-password-link">
                                                    <i class="icon-arrow-left"></i>
                                                    I forgot my password
                                                </a>
                                            </div>

                                            <div>
                                                <a href="javascript:void(0);" ng-click="openforms('register')" class="user-signup-link">
                                                    I want to register
                                                    <i class="icon-arrow-right"></i>
                                                </a>
                                            </div>
                                        </div>
                                    </div><!--/widget-body-->
                                </div><!--/login-box-->
                                
                                <div ng-show="forms.isForgot" class="forgot-box visible widget-box no-border">
                                    <div class="widget-body">
                                        <div class="widget-main">
                                            <h4 class="header red lighter bigger">
                                                <i class="icon-key"></i>
                                                Retrieve Password
                                            </h4>

                                            <div class="space-6"></div>
                                            <p>
                                                Enter your email and to receive instructions
                                            </p>

                                            <form>
                                                <fieldset>
                                                    <label>
                                                        <span class="block input-icon input-icon-right">
                                                            <input type="email" class="span12" placeholder="Email" />
                                                            <i class="icon-envelope"></i>
                                                        </span>
                                                    </label>

                                                    <div class="clearfix">
                                                        <button onclick="return false;" class="width-35 pull-right btn btn-small btn-danger">
                                                            <i class="icon-lightbulb"></i>
                                                            Send Me!
                                                        </button>
                                                    </div>
                                                </fieldset>
                                            </form>
                                        </div><!--/widget-main-->

                                        <div class="toolbar center">
                                            <a href="javascript:void(0);" ng-click="openforms('login')" class="back-to-login-link">
                                                Back to login
                                                <i class="icon-arrow-right"></i>
                                            </a>
                                        </div>
                                    </div><!--/widget-body-->
                                </div><!--/forgot-box-->

                                <div ng-show="forms.isRegister" class="signup-box visible widget-box no-border">
                                    <div class="widget-body">
                                        <div class="widget-main">
                                            <h4 class="header green lighter bigger">
                                                <i class="icon-group blue"></i>
                                                New User Registration
                                            </h4>

                                            <div class="space-6"></div>
                                            <p> Enter your details to begin: </p>

                                            <form>
                                                <fieldset>
                                                    <label>
                                                        <span class="block input-icon input-icon-right">
                                                            <input type="email" class="span12" placeholder="Email" />
                                                            <i class="icon-envelope"></i>
                                                        </span>
                                                    </label>

                                                    <label>
                                                        <span class="block input-icon input-icon-right">
                                                            <input type="text" class="span12" placeholder="Username" />
                                                            <i class="icon-user"></i>
                                                        </span>
                                                    </label>

                                                    <label>
                                                        <span class="block input-icon input-icon-right">
                                                            <input type="password" class="span12" placeholder="Password" />
                                                            <i class="icon-lock"></i>
                                                        </span>
                                                    </label>

                                                    <label>
                                                        <span class="block input-icon input-icon-right">
                                                            <input type="password" class="span12" placeholder="Repeat password" />
                                                            <i class="icon-retweet"></i>
                                                        </span>
                                                    </label>

                                                    <label>
                                                        <input type="checkbox" />
                                                        <span class="lbl">
                                                            I accept the
                                                            <a href="#">User Agreement</a>
                                                        </span>
                                                    </label>

                                                    <div class="space-24"></div>

                                                    <div class="clearfix">
                                                        <button type="reset" class="width-30 pull-left btn btn-small">
                                                            <i class="icon-refresh"></i>
                                                            Reset
                                                        </button>

                                                        <button onclick="return false;" class="width-65 pull-right btn btn-small btn-success">
                                                            Register
                                                            <i class="icon-arrow-right icon-on-right"></i>
                                                        </button>
                                                    </div>
                                                </fieldset>
                                            </form>
                                        </div>

                                        <div class="toolbar center">
                                            <a href="javascript:void(0);" ng-click="openforms('login')" class="back-to-login-link">
                                                <i class="icon-arrow-left"></i>
                                                Back to login
                                            </a>
                                        </div>
                                    </div><!--/widget-body-->
                                </div><!--/signup-box-->
                            </div><!--/position-relative-->
                        </div>
                    </div>
                </div><!--/.span-->
            </div><!--/.row-fluid-->
        </div>
    </div><!--/.main-container-->
    <!--basic scripts-->

    <script src="~/Scripts/jquery-1.10.2.min.js"></script>


    <script type="text/javascript">
        if ("ontouchend" in document) document.write("<script src='/Scripts/UI Template Scripts/Admin/jquery.mobile.custom.min.js'>" + "<" + "/script>");
    </script>
    <script src="~/Scripts/UI Template Scripts/Admin/bootstrap.min.js"></script>

    <!--page specific plugin scripts-->
    <!--ace scripts-->

    <script src="~/Scripts/UI Template Scripts/Admin/ace-elements.min.js"></script>
    <script src="~/Scripts/UI Template Scripts/Admin/ace.min.js"></script>

    <!--inline scripts related to this page-->

    <script type="text/javascript">
        function show_box(id) {
            $('.widget-box.visible').removeClass('visible');
            $('#' + id).addClass('visible');
        }
    </script>
    <!-- vendor scripts -->
    <script src="~/Scripts/angular.min.js"></script>
    <script src="~/Scripts/angular-route.min.js"></script>

    

    <!-- app scripts-->
    <script src="~/Scripts/app/app.js"></script>
    <script src="~/Scripts/app/shared/js/constants.js"></script>
    
    <!-- common scripts-->
    <script src="~/Scripts/app/shared/js/service.js"></script>
    <script src="~/Scripts/app/shared/js/directive.js"></script>

    <script src="~/Scripts/app/login/js/loginCtrl.js"></script>
    <script src="~/Scripts/app/login/js/loginSrvc.js"></script>
</body>
</html>



